# _*_ coding: utf-8 _*_
"""进行队列操作"""
import queue


# 向队列写操作
def writerQ(queue, data):
    queue.put(data, 1)
    print('size now:', queue.qsize())


# 从队列读操作
def readQ(queue):
    # if queue.empty() is not True:
    #     data = queue.get(1)
    # else:
    #     data = None
    data = queue.get(1)
    print('size now:', queue.qsize())
    return data